diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-11-19 15:11:27 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-11-19 15:11:27 +0000 |
| commit | af335486c659fb6f5d065eb61014074045e4e81d (patch) | |
| tree | 47f34b5fd17739e4a74e004de4a47d8b6b61bdcb /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 84f3a53ac9a784d13aa74f88993847beadd5904f (diff) | |
Generate Patio code for try statements
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
| -rw-r--r-- | snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..71389f44 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,39 @@ +Compilation unit elements: + +( + function-decl + "shed__runtime__effects_push_handler" + params=((param "effectTag" int)) + return-type=data-ptr +) +( + function-decl + "shed__runtime__effects_set_handler_method" + params=((param "handler" data-ptr) (param "methodIndex" int) (param "handlerMethod" int)) + return-type=void +) +( + function-decl + "shed__runtime__effects_pop_handler" + params=() + return-type=void +) + +Locals: + * (val "effectHandler__0" data-ptr) + * (val "tmp__0" int) + +Instructions: + +( + (call (local "effectHandler__0") "shed__runtime__effects_push_handler" ((int 0))) + (call _ "shed__runtime__effects_set_handler_method" ((local "effectHandler__0") (int 0) (local "handlerC"))) + (call _ "shed__runtime__effects_set_handler_method" ((local "effectHandler__0") (int 1) (local "handlerA"))) + (call _ "shed__runtime__effects_set_handler_method" ((local "effectHandler__0") (int 2) (local "handlerB"))) + (local-store (local "tmp__0") (int 42)) + (call (local "effectHandler__0") "shed__runtime__effects_pop_handler" ()) +) + +Temporary stack: + * tmp__0 + * other |
